]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Remove dead code
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 9 Apr 2015 16:38:17 +0000 (18:38 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 10 Apr 2015 12:59:24 +0000 (14:59 +0200)
The "clearable" concept is no longer relevant with the new design, not
to mention that resident sources are no longer a thing either ...

js/ui/messageTray.js

index 393f431602b2d4c4f6fe83175cb2957eddce4f67..42c559fbbc12128479e3449df9bf9068e7de7aef 100644 (file)
@@ -753,10 +753,6 @@ const Source = new Lang.Class({
         return this.count > 1;
     },
 
-    get isClearable() {
-        return !this.isChat && !this.resident;
-    },
-
     countUpdated: function() {
         this.emit('count-updated');
     },
@@ -929,8 +925,6 @@ const MessageTray = new Lang.Class({
         this._notificationTimeoutId = 0;
         this._notificationRemoved = false;
 
-        this.clearableCount = 0;
-
         Main.layoutManager.addChrome(this.actor, { affectsInputRegion: false });
         Main.layoutManager.trackChrome(this._bannerBin, { affectsInputRegion: true });
 
@@ -1031,9 +1025,6 @@ const MessageTray = new Lang.Class({
             destroyId: 0,
         };
 
-        if (source.isClearable)
-            this.clearableCount++;
-
         this._sources.set(source, obj);
 
         obj.notifyId = source.connect('notify', Lang.bind(this, this._onNotify));
@@ -1046,9 +1037,6 @@ const MessageTray = new Lang.Class({
         let obj = this._sources.get(source);
         this._sources.delete(source);
 
-        if (source.isClearable)
-            this.clearableCount--;
-
         source.disconnect(obj.notifyId);
         source.disconnect(obj.destroyId);